package com.zhouhailin.aop.service.impl;

import com.zhouhailin.aop.service.AopDemoService;

/**
 * @Author zhouhailin
 * @date 2023/1/31 16:16
 */
public class AopDemoServiceImpl implements AopDemoService {

    @Override
    public void doMethod1() {
        System.out.println("切面方法1：AopDemoServiceImpl.doMethod1()");
    }

    @Override
    public String doMethod2() {
        System.out.println("切面方法2：AopDemoServiceImpl.doMethod2()");
        return "hello world";
    }

    @Override
    public String doMethod3() throws Exception {
        System.out.println("切面方法3：AopDemoServiceImpl.doMethod3()");
        throw new Exception("some exception");
    }
}
